<?php
/*
  $Id: languages.php,v 1.15 2003/06/09 22:10:48 hpdl Exp $

  E-Commerce Solutions

  Copyright (c) 2005 www.flash-template-design.com

  Released under the GNU General Public License
*/
?>
<!-- languages <tr><td>//-->
          
            

            
<?php
  $info_box_contents = array();
  $info_box_contents[] = array('text' => BOX_HEADING_LANGUAGES);
?>
<?php
  if (!isset($lng) || (isset($lng) && !is_object($lng))) {
    include(DIR_WS_CLASSES . 'language.php');
    $lng = new language;
  }

  $languages_string = '';
  reset($lng->catalog_languages);
  while (list($key, $value) = each($lng->catalog_languages)) {
    $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
  }

  $info_box_contents = array();
  $info_box_contents[] = array('align' => 'center',
                               'text' => '<table class="" border="0" height="24" cellpadding="0" cellspacing="0" style="background-image:none; margin:0px; padding:0px;"><tr><td><table class="innersearch_lang" border="0" height="24" cellpadding="0" cellspacing="0"><tr><td>'.$languages_string.'</td></tr></table></td></tr></table>');

  new infoBox($info_box_contents);
  //new infoBoxFooter();
?>
             
          

          
<!-- languages_eof </tr></td>//-->
